using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class medical_faqMap : EntityTypeConfiguration<medical_faq>
    {
        public medical_faqMap()
        {
            // Primary Key
            this.HasKey(t => t.medical_faq_id);

            // Properties
            this.Property(t => t.medical_faq_title)
                .HasMaxLength(500);

            this.Property(t => t.medical_faq_content)
                .HasMaxLength(8000);

            // Table & Column Mappings
            this.ToTable("medical_faq");
            this.Property(t => t.medical_faq_id).HasColumnName("medical_faq_id");
            this.Property(t => t.medical_faq_title).HasColumnName("medical_faq_title");
            this.Property(t => t.medical_faq_content).HasColumnName("medical_faq_content");
        }
    }
}
